package com.chaos.auth.service.third.wx;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "wxThirdService", url = "https://api.weixin.qq.com")
public interface WxThirdService {
    @GetMapping("/sns/jscode2session")
    String jsCode2Session(
            @RequestParam("appid") String appid,
            @RequestParam("secret") String secret,
            @RequestParam("js_code") String jsCode,
            @RequestParam("grant_type") String grantType
    );
}
